﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EzDesk.Project.Model;
using EzDesk.Project.Service.Repositories.Interfaces;

namespace EzDesk.Project.Service.Repositories.Mock
{
    public class Mock_PlaneTypeRepository : Mock_Repository<PlaneType>, IPlaneTypeRepository
    {
        protected override void Initialize()
        {
            if (!HasInitialized)
            {
                innerManager.Add(new PlaneType() { Id = Guid.NewGuid(), Name = "概念", OrderNo = 0 }, true);
                innerManager.Add(new PlaneType() { Id = Guid.NewGuid(), Name = "扩初", OrderNo = 5 }, true);
                innerManager.Add(new PlaneType() { Id = Guid.NewGuid(), Name = "方案", OrderNo = 10 }, true);
                innerManager.Add(new PlaneType() { Id = Guid.NewGuid(), Name = "施工图", OrderNo = 15 }, true);
            }
            base.Initialize();
        }

        public Mock_PlaneTypeRepository()
        {
            Initialize();
        }
    }
}
